#include "SingaporeBusStructures.h"

#ifndef JOURNEYPLANNER_H_
#define JOURNEYPLANNER_H_

struct CJourneyPlannerOutput : public CBase
	{
	enum { ESuccess, EError } iStatus;
	HBufC* iErrorMessage;
	struct CItinerary : public CBase
		{
		TInt iDuration; // in seconds
		TInt iDistance; // in seconds
		HBufC* iFare;
		struct CLeg : public CBase
			{
			enum { WALK, BUS, OTHER } iMode;
			const TStation* iFromStation;
			const TStation* iToStation;
			const TService* iService;
			HBufC* iServiceDesc;
			HBufC* iFromLocation;
			HBufC* iToLocation;
			TInt iDuration; // in seconds
			TInt iCountStops;
			TInt iDistance; // in m
			HBufC* iLegFare;
			~CLeg();
			};
		RArray< CLeg* > iLegs;
		~CItinerary();
		};
	RArray< CItinerary* > iItineraries;
	~CJourneyPlannerOutput();
	};


#endif /* JOURNEYPLANNER_H_ */
